<?php

/**
 * TaxiOrder form.
 *
 * @package    form
 * @subpackage taxi_order
 * @version    SVN: $Id: sfPropelFormTemplate.php 6174 2007-11-27 06:22:40Z fabien $
 */
class TaxiOrderForm extends BaseTaxiOrderForm
{
  public function configure()
  {
  		unset($this->validatorSchema['created_at']);
    	unset($this->widgetSchema['created_at']);

		$driverCriteria = new Criteria();
		$driverCriteria->add(TaxiDriverPeer::ACTIVE, true);
		$this->widgetSchema['driver_id']->setOption('criteria', $driverCriteria);
  }
}
